<form class="layui-form model-form" action="">
	<input name="id" id="id" type="hidden" value="{$info.id|default=0}">
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">任务标题：</label>
			<div class="layui-input-inline">
				<input name="title" value="{$info.title|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入任务标题" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">任务类型：</label>
			<div class="layui-input-inline">
				{common:select param="type|1|任务类型|name|id" data="$typeList" value="isset($info['type']) ? $info['type'] : 1"}
			</div>
		</div>
	</div>
	<div class="layui-form-item" style="width: 625px;">
		<label class="layui-form-label">任务脚本：</label>
		<div class="layui-input-block">
			<input name="schedule" value="{$info.schedule|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入执行周期" class="layui-input" type="text">
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">最多执行：</label>
			<div class="layui-input-inline">
				<input name="maximums" value="{$info.maximums|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入最多执行次数" class="layui-input" type="number">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">任务权重：</label>
			<div class="layui-input-inline">
				<input name="weigh" value="{$info.weigh|default=0}" lay-verify="required" autocomplete="off" placeholder="请输入执行周期" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">开始时间：</label>
			<div class="layui-input-inline">
				{date:select param="start_time|开始时间|datetime" value="$info.format_start_time|default=''"}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">结束时间：</label>
			<div class="layui-input-inline">
				{date:select param="end_time|结束时间|datetime" value="$info.format_end_time|default=''"}
			</div>
		</div>
	</div>
	<div class="layui-form-item layui-form-text" style="width: 625px;">
		<label class="layui-form-label">任务内容：</label>
		<div class="layui-input-block">
			<textarea name="content" placeholder="请输入内容" class="layui-textarea">{$info.content|default=''}</textarea>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">任务状态：</label>
			<div class="layui-input-inline">
				{common:switch name="status" title="在用|禁用" value="isset($info['status']) ? $info['status'] : 1"}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">排序：</label>
			<div class="layui-input-inline">
				<input name="sort" value="{$info.sort|default=125}" lay-verify="required|number" autocomplete="off" placeholder="请输入序号" class="layui-input" type="text">
			</div>
		</div>
	</div>
	{widget:submit name="submit|立即保存,close|关闭"}
</form>
